package com.jie.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;

@Component
public class DelDao {

    @Autowired
    JdbcTemplate jdbcTemplate;

    public int delete(Integer id) {
        return jdbcTemplate.update("delete from t_chanson where id = ?", id);
    }
}
